import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpVip {
  id!: number;
  userId!: number;
  overTime?: string;
  addTime?: string;
  updateTime?: string;
  uniacid!: number;
  buyType: boolean = true;
}

export const ImsYzdKpVipSchema = new EntitySchema({
  class: ImsYzdKpVip,
  properties: {
    id: { primary: true, type: 'number' },
    userId: { type: 'number', index: 'user_id' },
    overTime: { type: 'string', length: 255, nullable: true },
    addTime: { type: 'string', length: 255, nullable: true },
    updateTime: { type: 'string', length: 255, nullable: true },
    uniacid: { type: 'number', index: 'uniacid' },
    buyType: { type: 'boolean', default: true },
  },
});
